﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KPI.Utility;
using KPI.ProjectDomain.Model.ValueObject;


namespace KPI.ProjectDomain.Model.Entity
{
    public class Task : EntityBase
    {
        public int TaskID { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public Project Project { get; set; }

        public TaskState State { get; set; }

        public int BudgetHours { get; set; }

        public int TotalHours { get; set; }

        public Employee AssignmentLeader { get; set; }

        public List<Employee> Members { get; set; }

        public List<Task> PreconditionTaskList { get; set; }

        public List<WorkRecord> WorkRecordList { get; set; }

        public Task()
        {
            this.Members = new List<Employee>();
            this.PreconditionTaskList = new List<Task>();
            this.WorkRecordList = new List<WorkRecord>();
        }
    }
}
